package com.ssm.auth.domain.convert;


import com.ssm.auth.domain.bo.AuthUserBO;
import com.ssm.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserBoConvert {
    AuthUserBoConvert INSTANCE = Mappers.getMapper(AuthUserBoConvert.class);

    //bo 转 entity
    AuthUser userBoToUser(AuthUserBO authUserBO);

    //entity 转 bo
    AuthUserBO UserToUserBo(AuthUser authUser);

    //entitys To Bos
    List<AuthUserBO> UsersToUserBos(List<AuthUser> authUsers);
}
